*{
    /* 点击高亮我们需要清洁清除，设置为透明 */
    -webkit-tap-highlight-color: transparent;
}
body{
    width: 100%;
    max-width: 640px;
    min-width: 320px;
    margin: 0 auto;
    font-size: 14px;
    font-family: -apple-system,Helvetica, sans-serif;
}
/* 在移动端浏览器默认的外观在iOS上加上这个属性才能给按钮和输入框自定义样式 */
input{
    appearance: none;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
img{
    vertical-align:middle;
}
/* 禁用长按页面时的弹出菜单 */
img,a{
    -webkit-touch-callout: none;
}
div{
    /* CSS3盒子模型 */
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: #666;
}
/* 清楚浮动 */
.clearfix:before,.clearfix:after{
    content: "";
    display:table;
}
.clearfix:after{
    clear: both;
}
.clearfix{
    *zoom:1;
}
/* 顶部区域 */
.app{
    height: 45px;
}
.app ul li {
    float: left;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background-color: #333;
    color: white;
}
.app li:nth-child(1){
    width: 8%;
}
.app li:nth-child(1) img{
    width: 10px;
}
.app li:nth-child(2){
    width: 10%;
}
.app li:nth-child(2) img{
    width: 30px;
    vertical-align: middle;
}
.app li:nth-child(3){
    width: 57%;
}
.app li:nth-child(4){
    width: 25%;
    background-color: #F63515;
}
/* 搜索区域 */
.search-wrap{
    overflow: hidden;
    /* 添加固定定位 */
    position: fixed;
    width: 100%;
    height: 44px;
    min-width:320px;
    max-width: 640px;
    z-index: 999;
}
.search-btn{
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 44px;
}
.search-btn::before{
    content: '';
    display: block;
    width: 20px;
    height: 18px;
    background: url(../img/s-btn.png) no-repeat;
    background-size: 20px 18px;
    margin: 14px 0 0 15px;
}
.search-login{
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 44px;
    line-height: 44px;
    color: #fff;
}
.search{
    position: relative;
    height: 30px;
    background-color: #fff;
    margin: 0 50px;
    border-radius: 15px;
    margin-top: 7px;
}
.jd-icon{
    width: 20px;
    height: 15px;
    position: absolute;
    top:8px;
    left: 13px;
    background: url('../img/jd.png') no-repeat;
    background-size: 20px 15px;
}
.jd-icon::after{
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    display: block;
    width: 1px;
    height: 15px;
    border-right: 1px solid #ccc;
}
.sou{
    position: absolute;
    top:0;
    left: 40px;
    width: 18px;
    height: 15px;
    /* 使用精灵图添加搜索图标 */
    background:url('../img/jd-sprites.png') no-repeat -81px 0;
    /* 缩小精灵图，精灵图是原来宽度的一半 */
    background-size: 200px auto;
}
.slider img{
    width: 100%;
}
.swiper {
    width: 100%;
    height: 100%;
  }

  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
/* 品牌日 */
.brand{
    /* 因为切的是盒子的边角框，图片没有切，所以给brand一个溢出隐藏，让切掉的地方漏出的图片给隐藏起来，这样就能漏出边角框了 */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.brand div{
    float: left;
    width: 33.33%;
}
.brand div img{
    /* 图片的宽度要跟div的宽度一样宽 */
    width: 100%;
}
/* nav模块 */
nav{
    padding-top: 5px;
}
nav a{
    float: left;
    width: 20%;
    text-align: center;
}
nav a img{
    width: 40px;
    margin: 10px 0;
}
nav a span{
    display: block;
    font-size: 12px;
}
/* 新闻快报 */
.news {
    margin-top: 20px;
}
.news  img{
    width: 100%;
}
.news a{
    float: left;
    /* 添加C3盒子模型，让盒子不会被撑大 */
    box-sizing: border-box;
}
.news a:nth-child(1){
    width: 50%;
}
/* 从第二个a开始 */
.news a:nth-child(n+2){
    width: 25%;
    border-left: 1px solid #ccc;
}
